package io.xdag.crypt.enumeration;

import io.xdag.beans.BaseEnum;

public enum EDfslibErrors implements BaseEnum<Integer> {

	DFSLIB_ERROR_MAX(-2,"错误最大值"),
	DFSLIB_NOT_REALIZED(-2,"没有实现"),
	DFSLIB_IO_ERROR(-3,"io错误"),
	DFSLIB_CORRUPT_DATA(-4,"作弊数据"),
	DFSLIB_INVALID_VOLUME(-5,"大量无效"),
	DFSLIB_INVALID_TYPE(-6,"无效类型"),
	DFSLIB_INVALID_VALUE(-7,"无效值"),
	DFSLIB_FILE_IS_DIR(-8,"文件夹"),
	DFSLIB_FILE_IS_NOT_DIR(-9,"文件没有文件夹"),
	DFSLIB_DIR_NOT_EMPTY(-10,"文件夹为空"),
	DFSLIB_INVALID_NAME(-11,"无效名称"),
	DFSLIB_NAME_TOO_LONG(-12,"名称太长"),
	DFSLIB_NOT_FOUND(-13,"没有找到"),
	DFSLIB_ACCESS_DENIED(-14,"数据拒绝"),
	DFSLIB_READ_ONLY(-15,"只读"),
	DFSLIB_NO_FREE_MEMORY(-16,"内存不足"),
	DFSLIB_NO_FREE_SPACE(-17,"空格不够"),
	DFSLIB_TEMP_UNAVAILABLE(-18,"temp无效"),
	DFSLIB_INTERNAL_ERROR(-20,"网络错误"),
	DFSLIB_ERROR_MIN(-20,"最小错误");
	private Integer code;

	private String text;

	EDfslibErrors(Integer code, String text) {
        this.code = code;
        this.text = text;
    }

  
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
    
    @Override
    public String toString() {
        return text;
    }
}
